#include "myStdio.h"
#include <stdio.h>
int main()
{
  FILE_ * fp = fopen_("log.txt", "w");
  if(NULL == fp)
  {
    return 1;
  }
  int cnt = 10;
  const char* str = "hello yzc";
  while(cnt--)
  {
    fwrite_(str, strlen(str), fp);
    fflush_(fp);
    sleep(1);
    printf("%d\n",cnt);
  }
  fclose_(fp);
  return 0;
}
